import {getRequest, postRequest} from '/src/lib/axios';


export const selectFieldsApi = {

    queryFields: (tableName) => {
        return getRequest(`/query/getTableColumns/${tableName}`);
    },

    queryTable: (tableName,sourceId) => {
        return getRequest(`/query/getTable/${tableName}/${sourceId}`);
    },

    //todo

    saveColumns(data,sourceId) {
        return postRequest(`/query/saveColumns/${sourceId}`, data)
    }
}